/*
 * Copyright (c) 2021-2024 SigScalr, Inc.
 *
 * This file is part of SigLens Observability Solution
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

/* THEME BASED COLORS */
* {
  box-sizing: border-box;
}

:root {
  --db-bg-color: var(--black-2);
  --db-options-bg-color: var(--black-3);
  --edit-panel-bg-color: var(--black-1);
  --panel-table-bg-color: var(--black-2);
  --panel-table-line-color: var(--white-4);
  --edit-panel-border-color: var(--black-5);
  --edit-panel-option-bg-color: var(--black-2);
  --edit-panel-dropdown-bg-color-hover: var(--black-2);
  --edit-panel-input-bg-focus: var(--black-1);
  --color-selector-active: var(--white-1);
  --db-setting-option-selected: var(--black-4);
  --db-setting-option-text-selected: var(--white-1);
  --db-setting-placeholder: var(--black-5);
  --db-setting-text: var(--white-2);
  --legend-element-hover: var(--white-1);
  --top-save-btn-bg-img: url("../assets/save-icon.svg");
  --arrow-dashboard-img: url("../assets/arrow-dashboard-light.svg");
  --panel-container: var(--white-5);
}

[data-theme='light'] {
  --db-bg-color: var(--white-0);
  --db-options-bg-color: var(--white-3);
  --edit-panel-bg-color: var(--white-0);
  --panel-table-bg-color: var(--white);
  --panel-table-line-color: var(--white-3);
  --edit-panel-border-color: var(--white-3);
  --edit-panel-option-bg-color: var(--white-2);
  --edit-panel-dropdown-bg-color-hover: var(--white-2);
  --color-selector-active: var(--black-1);
  --edit-panel-input-bg-focus: var(--white-2);
  --db-setting-option-text-selected: var(--black-1);
  --db-setting-option-selected: var(--white-8);
  --db-setting-placeholder: var(--black-6);
  --db-setting-text: var(--black-4);
  --legend-element-hover: var(--black-1);
  --top-save-btn-bg-img: url("../assets/save-btn.svg");
  --arrow-dashboard-img: url("../assets/arrow-dashboard-black.svg");
  --panel-container: var(--white-9);
}


/* PANEL EDITOR PAGE */

.panelEditorLeft {
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 1.5%;
  justify-content: space-between;
}

/* PANEL-OPTIONS */

.submitBtn-container {
  justify-self: center;
  max-height: 100%;
  width: 85%;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  justify-self: flex-end;
  bottom: 30px;
  right: 30px;
  padding-bottom: 30px;
}

.panEdit-nameChange {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

#panEdit-nameChangeInput {
  border: 1px solid var(--border-color-regular);
  outline: none;
  padding: 0.25rem 0.5rem;
  width: 100%;
  border-radius: 5px;
}

.panEdit-descrChange {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  margin-bottom: 1rem;
}

#panEdit-descrChangeInput {
  border: 1px solid transparent;
  outline: none;
  padding: 0.25rem 0.5rem;
  width: 100%;
  border-radius: 5px;
  font-size: 18px;
  resize: none;
  margin-top: 15px;
  border: 1px solid var(--border-color-regular);
}

#panEdit-descrChangeInput,
#panEdit-nameChangeInput {
  font-size: 12px;
  background-color: var(--drop-down-btn-bg-regular);
  color: var(--text-color);
}

#panEdit-nameChangeInput:focus,
#panEdit-descrChangeInput:focus {
  border: 1px solid var(--purple-1);
  background: var(--edit-panel-input-bg-focus);
}

.dropDownTitle {
  width: 85%;
  padding: 0.5em 0.75em;
  cursor: pointer;
  transition: all 0.3s;
  border-radius: 5px;
  height: 24px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--border-color-regular);
}

.dropDown-data-options.active .dropDown-data-options.selected {
  width: 85%;
  background-color: #2a2f3b;
  background-color: var(--black-1);
  color: #fff;
  padding: 0.5em 0.75em;
  cursor: pointer;
  transition: all 0.3s;
  border-radius: 5px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.dropDownTitle.active {
  background-color: rgba(99, 71, 217, 0.15);
  border: 1px solid var(--purple-1);
}

.dropDownTitle:hover {
  background-color: var(--edit-panel-dropdown-bg-color-hover);
}

.dropDown-unit,
.dropDown-logLinesView {
  margin-top: 15px;
}

.editPanelMenu-logLinesView .editPanelMenu-options {
  padding: 0px;
  height: 28px;
}

.dropDown-unit,
.dropDown-logLinesView {
  display: none;
}

.caret {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--orange-1);
  transition: 0.3s;
  rotate: 180deg;
}

.horizontalCaret {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--orange-1);
  transition: 0.3s;
  rotate: 90deg;
}

.editPanelMenu {
  list-style: none;
  width: 85%;
  cursor: pointer;
  background-color: var(--edit-panel-bg-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid var(--edit-panel-border-color);
  border-radius: 5px;
  margin-top: 8px;
  margin-bottom: 0;
  padding: 10px 0;
}

.editPanelMenu-options,
.editPanelMenu-unit-options {
  width: 92%;
  border-radius: 4px;
  display: flex;
  flex-direction: row;
  padding: 10px 0 10px 12px;
}

.editPanelMenu-unit-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: max-content;
  padding: 5px 6px 5px 0px;
}

.inner-options {
  width: 92%;
  height: 25px;
  border-radius: 4px;
  background-color: var(--black-2);
  margin-top: 3px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  padding-left: 10px;
}

.editPanelMenu-options:not(:first-child),
.editPanelMenu-unit-options:not(:first-child) {
  margin-top: 7px;
}

.editPanelMenu-options li {
  display: flex;
  flex-direction: row;
  align-items: center;
  height: 30px;
  margin-left: 11px;
}

.editPanelMenu-unit-options li {
  display: flex;
  flex-direction: row;
  align-items: center;
  height: 100%;
  margin-left: 11px;
}

.editPanelMenu-options:hover,
.editPanelMenu-unit-options:hover {
  background-color: var(--purple-1);
  color: var(--white-1);
}

.editPanelMenu-options input[type="checkbox"] {
  cursor: pointer;
}

.editPanelMenu-unit-options input[type="checkbox"] {
  cursor: pointer;
}

.dropDownTitle {
  background-color: var(--drop-down-btn-bg-regular);
  color: var(--text-color);
}

.editPanelMenu-options,
.editPanelMenu-unit-options,
.inner-options {
  background-color: var(--edit-panel-option-bg-color);
  color: var(--black-5);
}

.inner-options:hover,
.editPanelMenu-unit-options:hover,
.editPanelMenu-options:hover {
  background: var(--index-drop-down-item-hover-bg-color);
  color: var(--index-drop-down-item-hover-text-color);
}

.editPanelMenu-options.selected,
.editPanelMenu-unit-options.selected,
.inner-options.selected,
.inner-options.active {
  background: var(--index-drop-down-item-active-bg-color);
  color: var(--index-drop-down-item-active-text-color);
}

/* QUERY INPUT SECTION - BOTTOM LEFT */
.queryInputs {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
}

.dropDown {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
}

.queryInput-container {
  width: 100%;
  display: flex;
}

.queryInput-InnerContainer {
  display: flex;
  flex-direction: row;
  width: 100%;
}

.queryInput {
  height: 24px;
  font-size: 14px;
  width: 100%;
  color: var(--text-color);
  background: var(--search-bar-bg);
  outline: none;
  border-radius: 5px;
  padding-left: 10px;
  padding-right: 40px;
  border: 1px solid var(--border-color-regular);
}

.edit-panel-corner-popup {
  top: 100px;
}

/* PANEL DISPLAY */

.panelDisplay {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 40vh;
  min-height: 170px;
  justify-content: center;
  border-radius: 5px;
  position: relative;
  background-color: var(--datatable-bg-color);
}

.panelDescription {
  width: 100%;
  min-height: 65px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  font-size: 1.5rem;
}

.panelDescription .dropDown-container {
  width: auto;
}

.dropDown-timePicker span {
  font-size: 1rem;
}

.panelDisplay .panEdit-panel {
  height: 100%;
  width: 100%;
  background-color: var(--db-bg-color);
  overflow: hidden;
  margin: 0;
  border-radius: 5px;
  padding: 10px;
}

.panelDisplay .timePicker {
  background-color: var(--black-1);
  padding: 0.75em 1em;
  border-radius: 5px;
  color: #fff;
}

/* BUTTONS */

.btn-runQuery {
  background: var(--btn-regular-bg-color) !important;
  padding: 0px 12px;
  text-decoration: none;
  border: none;
  height: 24px;
  line-height: 7px;
  align-self: flex-end;
  border-radius: 5px;
  box-shadow: none !important;
  font-size: 14px;
  color: white !important;
  width: 120px;
  margin-left: 10px;
}

.btn-runQuery:hover {
  background: var(--btn-hover-or-click-bg-color) !important;
}

.btn-runQuery:active {
  background: var(--btn-hover-or-click-bg-color) !important;
}

.panelEditor-container {
  display: none;
  flex-direction: column;
  width: 96vw;
  height: 96vh;
  background-color: var(--db-bg-color);
  position: absolute;
  top: 50%;
  z-index: 999;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 8px;
}

/* PANEL EDIT NAV BAR */
.panEdit-navBar {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background-color: var(--db-bg-color);
  color: var(--text-color);
  font-size: 14px;
  margin-bottom: 12px;
}

.panEdit-navBar .dropdown {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
}

.panEdit-navBtns {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
  justify-content: flex-end;
  padding: 14px 0px 14px 0px;
  background-color: var(--db-bg-color);
}

.panEdit-btn {
  height: 24px;
  outline: none;
  border: 0px;
  margin-right: 10px;
  line-height: 14px;
  border-radius: 5px;
  box-shadow: none !important;
}

/* DASHBOARD.HTML */

.panel-container {
  position: relative;
}


/* DASHBOARD SAVE POPUP */
.classBody {
  position: relative;
}

.div-toast {
  background: linear-gradient(to right, #6347D9, #160F29);
  right: 15px;
  top: 70px;
  position: absolute;
  padding: 0.5rem 1rem;
  transition: 1s;
  z-index: 2;
  color: var(--white-0);
}

.toast-close {
  cursor: pointer;
  border: none;
  outline: none;
  background-color: transparent;
  color: var(--white-0);
}

.panelDisplay #corner-popup {
  position: static;
  border: none;
  background-color: var(--datatable-bg-color);
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
  max-height: 100%;
  font-size: 24px;
  font-weight: 500;
  color: var(--empty-response-text-color);
  z-index: 1;
  transform: none;
}

/* EMPTY-RESPONSE CSS FIX */
.panelDisplay #empty-response,
.panel #empty-response {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  font-weight: 500;
  width: 100%;
  border-radius: 5px;
}

/* AG-GRID DIV HEADER STYLES */
.panel .ag-header {
  background-color: var(--black-1) !important;
  color: var(--white-3) !important;
  border-bottom: 1px solid var(--white-4) !important;
}

/* BIG NUMBER */
.big-number-display-container {
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 5px;
  height: 100%;
  width: 100%;
}

.big-number {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 6vmax;
  font-weight: 600;
  color: var(--number-and-unit-color);
}

.unit {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  position: relative;
  margin-left: 16px;
  font-size: 6vmax;
  font-weight: 600;
  color: var(--number-and-unit-color);
}

/* DASHBOARD SETTINGS PAGE */
.dbSet-navBar {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: end;
  padding: 12px;
}

.dbSet-body {
  min-width: 100vw;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 16px;
}

/* DASHBOARD SETTINGS - LEFT */
.dbSet-left {
  display: flex;
  flex-direction: column;
}

/* DASHBOARD SETTINGS - RIGHT */
.dbSet-right {
  height: 100%;
}

.dbSet-generalHTML {
  width: 600px;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.dbSet-inputContainer {
  width: 80%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

#dbSet-descrContainer {
  margin-top: 24px;
  height: 120px;
}

.dbSet-dbName,
.dbSet-dbFolder {
  margin-top: 4px;
}

.dbSet-dbDescr {
  width: 100%;
  margin-top: 4px;
  height: 100%;
  resize: none;
}

.dbSet-dbDescr:focus {
  outline: 1pt solid var(--drop-down-btn-border-active);
}

.dbSet-saveBtnContainer {
  width: 80%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;

  position: absolute;
  bottom: 50px;
  right: 10%;
}

.dbSet-container .selected {
  background: var(--db-setting-option-selected);
}

.dbSet-container {
  display: none;
  height: 100vh;
}

.dbSet-right .hide {
  display: none;
  pointer-events: none;
  user-select: none;
}

/* JSON MODEL CONTAINER */

.dbSet-jsonModelTitle {
  color: var(--text-color);
  background-color: transparent;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  width: 80%;
  height: 15%;
  font-size: 18px;
}

.dbSet-textareaContainer {
  height: 100%;
  position: relative;
  margin-top: 8px;
}

.dbSet-jsonModelHTML {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* UNIT TYPE NESTED DROPDOWN */

.dropDown-data-options,
.dropDown-throughput-options {
  width: 100%;
}

#nestedDropDownContainer {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 85%;
}

#nestedDropDownContainer {
  display: none;
}

.editPanelMenu-unit {
  width: 100%;
}

.editPanelMenu-inner-options {
  width: 100%;
}

#nestedDropDown {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.forBigNum {
  display: none;
}

/* Line chart */
#app-container .line-chart-canvas {
  height: 100% !important;
  margin: 6px
}

.lineChartLegend {
  color: var(--metrics-legends-text-color);
  height: 108px;
  overflow-y: scroll;
  margin-left: 60px;
}

.legend-element-line {
  display: flex;
  align-items: center;
  font-weight: bold;
  font-size: 14px;
  gap: 10px;
}

.lineChartLegend:last-child {
  padding-bottom: 4px;
}

.legend-colors-line {
  border-radius: 3px;
  width: 25px;
  height: 6px;
  display: inline-block;
}

.legend-element-line:hover {
  color: var(--legend-element-hover);
}

.legend-element-line.selected {
  color: var(--legend-element-hover);
}

.navbar-options {
  display: flex;
  gap: 8px;
}

.panel-info-corner {
  width: 30px;
  height: 30px;
  position: absolute;
  top: 0;
  left: 0;
  border-bottom: 30px solid #0000;
  border-left: 32px solid var(--purple-1);
  border-right: none;
  border-radius: 1px 0;
  cursor: pointer;
  z-index: 1;
}

#panel-desc-info {
  cursor: pointer;
  font-size: 10px;
  left: -25px;
  position: absolute;
  top: 5px;
  color: #ffffffcb;
  height: 20px;
  width: 11px;
  font-weight: 600;
}

.panEdit-navBtns .refresh-btn {
  border-radius: 5px !important;
}

.settings-btn {
  margin-left: 0px;
  border: 1px solid var(--border-color-regular) !important;
  background: var(--top-setting-btn-bg-img) var(--drop-down-btn-bg-regular) center center no-repeat !important;
  background-size: 50% !important;
  width: 24px !important;
}

.chart-display {
  width: 14px;
  /* height: 30px; */
}

.panEdit-discard {
  width: 80px;
  background-color: var(--drop-down-btn-bg-regular);
  color: var(--text-color-regular) !important;
}

.panEdit-save {
  width: 60px;
  color: white !important;
  background-color: var(--purple-1) !important;
}

.panEdit-discard:hover {
  background-color: var(--drop-down-btn-bg-hover) !important;
}

.settings-btn:hover {
  background: var(--top-setting-btn-bg-img) var(--drop-down-btn-bg-hover) center center no-repeat !important;
  background-size: 50% !important;
}

#save-db-btn:hover {
  background: var(--top-save-btn-bg-img) var(--drop-down-btn-bg-hover) center center no-repeat !important;
  background-size: 45% !important;
}

.panel-header:hover {
  background: var(--datatable-bg-color) !important;
}

.dropdown-dash {
  width: 32px;
}

#save-db-btn {
  background: var(--top-save-btn-bg-img) var(--drop-down-btn-bg-regular) center center no-repeat !important;
  background-size: 50% !important;
  width: 24px;
}

#add-panel-btn:hover,
#add-panel-btn.active {
  background: var(--btn-hover-or-click-bg-color) !important;
}

.panel div.panel-header p {
  color: var(--datatable-header-text-color) !important;
}

#new-dashboard {
  padding: 0px !important;
  background-color: var(--panel-container) !important;
}

.panel {
  border: 1px solid var(--border-color-regular) !important;
}

.panel div.panel-header .dropdown-btn {
  background-image: url('../assets/other-options-icon.svg') !important;
}

.ag-row-position-absolute::after {
  content: '';
  position: absolute;
  left: 10px;
  width: 7000px;
  height: 1px;
  background-color: var(--panel-table-line-color);
  bottom: 0;
}

.dropdown-arrow.orange {
  padding: 0 !important;
}

.chart-options {
  color: var(--text-color-regular);
}

.chart-options.selected {
  background-color: var(--drop-down-btn-bg-hover) !important;
  color: var(--text-color-regular);
}

.chart-options:hover {
  background-color: var(--drop-down-btn-bg-hover) !important;
  color: var(--text-color-regular);
}

.dropdown-menu {
  background-color: var(--index-drop-down-box-bg-color) !important;
}

.over-title {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  vertical-align: bottom;
}

.circle {
  height: 26px;
  width: 26px;
  border-radius: 50%;
  background-color: var(--purple-1);
  color: var(--white-0);
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
}

.subsection-heading div:nth-child(2) {
  margin-left: 16px !important;
}

.section-content {
  padding-left: 42px;
  padding-top: 8px;
}

.section {
  margin-top: 24px;
}

.editPanelMenu-chart {
  display: flex;
  flex-wrap: wrap;
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.chart-options {
  display: flex;
  flex-direction: row;
  align-items: center;
  border-radius: 8px;
  padding: 4.5px 8px;
  display: inline-flex;
  align-items: center;
  margin-right: 20px;
  cursor: pointer;
}

.chart-options li {
  margin-left: 6px;
}

.graph-customization {
  width: 320px;
}

#add-widget-options {
  display: none;
}

#add-widget-options .editPanelMenu {
  width: 20%;
  padding: 10px 10px;
  position: absolute;
  right: 10px;
  top: 90px;
  cursor: default;
  box-shadow: var(--box-shadow);
  z-index: 1;
}

#add-widget-options .editPanelMenu-options {
  background-color: var(--edit-panel-bg-color) !important;
  color: var(--text-color-regular);
  width: 100%;
  padding: 0px 10px;
  margin: 0px;
  cursor: pointer;
  margin-top: 5px;
}

#add-widget-options .editPanelMenu-options:hover {
  background-color: var(--edit-panel-option-bg-color) !important;
  color: var(--text-color-regular);
}

.widgets-text {
  font-size: 12px;
  font-weight: 700;
  border-bottom: 2px solid var(--purple-1);
  margin-left: 8px;
}

.close-widget-popup {
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
}

.rotate-icon {
  transform: rotate(45deg);
}

.button-section {
  border-top: 1px solid var(--alerting-table-line-color);
  bottom: 0;
  width: 100%;
  flex-shrink: 0;
}

.ui-widget.ui-widget-content {
  z-index: 9;
}

.index-container {
  border: 1px solid var(--border-btn-color);
  border-radius: 5px;
  height: 32px;
  display: flex;
  align-items: center;
  padding: 0px 12px;
  font-size: 12px;
}

#index-listing {
  border: none;
  height: 28px;
  padding: 0px !important;
}

#index-listing:focus {
  outline: none;
  background: var(--ui-widget-bg-color);
}

/* JQUERY AUTOCOMpLETE */
.ui-widget.ui-widget-content {
  list-style-type: none;
  border-radius: 0px !important;
  width: fit-content;
  min-width: 233px;
}

.ui-autocomplete {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  display: none;
  float: left;
  min-width: 160px;
  padding: 0;
  margin: 2px 0 0;
  list-style: none;
  font-size: 14px;
  text-align: left;
  background-clip: padding-box;
}

.ui-autocomplete>li>div {
  display: block;
  padding: 3px 20px;
  clear: both;
  font-weight: normal;
  height: 34px;
  white-space: nowrap;
  display: flex;
  align-items: center;
}

.ui-state-hover,
.ui-state-active,
.ui-state-focus {
  color: #ffffff;
  text-decoration: none;
  background-color: #2D69BC;
  cursor: pointer;
  height: 34px;
}

.ui-helper-hidden-accessible {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

.add-panel-div {
  border: 2px solid var(--lavender-2);
  height: 92%;
  width: 92%;
  margin: auto;
  border-radius: 10px;
  background-color: rgba(100, 71, 217, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.add-panel-div:hover {
  background-color: rgba(100, 71, 217, 0.3);
}

.add-panel-div .plus-icon {
  font-size: 40px;
  color: var(--lavender-2);
}

.add-panel-div .text {
  font-size: 13px;
  font-weight: 600;
  color: var(--lavender-2);
}

.default-item.active .add-panel-div {
  border-style: dashed;
  cursor: default;
}

.default-item.active .add-panel-div:hover {
  background-color: rgba(100, 71, 217, 0.1);
}

.default-item {
  margin-top: 10px;
}

.grid-stack .grid-stack-placeholder>.placeholder-content {
  border: 1px dashed var(--border-color-regular);
  background-color: rgba(100, 71, 217, 0.1);
}

.grid-stack>.grid-stack-item>.grid-stack-item-content {
  overflow-y: hidden;
}

.panel-icons {
  display: none;
  cursor: pointer;
}

.panel-icons.active {
  display: flex;
  cursor: pointer;
}

.panel-icons img {
  height: 12px;
  margin-bottom: 5px;
  margin-left: 10px;
}

.panelEditorLeft,
#viewPanel-container {
  display: none;
}

.top-buttons {
  display: flex;
  border-bottom: 1px solid var(--alerting-table-line-color);
  padding: 14px;
  padding-bottom: 0px;
  justify-content: space-between;
  flex-shrink: 0;
}

.toggle-buttons div {
  padding-bottom: 6px;
  margin-right: 20px;
  cursor: pointer;
  color: #6F6B7B;
}

.toggle-buttons div.active {
  border-bottom: 4px solid var(--purple-1);
  color: var(--cstats-header-text-color);
}

.view-panel-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
}

.top-buttons .panEdit-discard {
  width: 24px;
  height: 24px;
  display: flex;
  justify-content: center;
  color: var(--text-color-regular) !important;
  align-items: center;
  font-size: 23px;
  padding-bottom: 3px;
  cursor: pointer;
}

#avail-field-container {
  display: none;
}

#metrics-query-language {
  width: 100%;
}

.ag-theme-mycustomtheme .ag-root-wrapper {
  border: none !important;
}

.panelLogResultsGrid .ag-cell {
  user-select: all;
}

#run-dashboard-fliter {
  height: 24px !important;
  width: 24px !important;
}

#panEdit-panel .legend-container {
  height: 40px;
}

.accordion-item {
  border: 1px solid var(--border-color-regular);
  border-radius: 0 !important;
  background: none;
}

.accordion-header {
  padding: 12px 15px;
  background-color: var(--drop-down-btn-bg-regular);
  cursor: pointer;
  display: flex;
  align-items: center;
}

.accordion-header::before {
  content: "";
  width: 12px;
  height: 12px;
  background-repeat: no-repeat;
  background-image: var(--front-arrow, url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="9 18 15 12 9 6"></polyline></svg>'));
  background-position: center;
  background-size: contain;
  margin-left: 8px;
  margin-right: 8px;
  transform: rotate(0deg);
  transition: transform 0.3s ease;
  opacity: 0.8;
}

.accordion-header:hover {
  background: var(--index-drop-down-item-hover-bg-color);
}

.accordion-title {
  font-weight: 500;
}

.accordion-arrow {
  transition: transform 0.3s;
  font-size: 18px;
}

.accordion-arrow.expanded {
  transform: rotate(180deg);
}

.accordion-content {
  padding: 15px;
  display: none;
  border-bottom: 1px solid var(--border-color-regular);
  background-color: var(--db-bg-color);
}

.accordion-content.expanded {
  display: block;
  width: 420px;
  min-height: auto;
}

.accordion-header.expanded::before {
  transform: rotate(90deg);
}

/* JSONEditor */
.json-editor-container {
  width: 100%;
  height: 100%;
  margin-bottom: 16px;
  border: 1px solid var(--border-color-regular);
  border-radius: 5px;
}

.dashboard-error-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90vh;
}

.error-card {
  background: var(--timepicker-bg-color);
  border: 1px solid var(--search-input-border);
  border-radius: 8px;
  box-shadow: var(--box-shadow);
  padding: 40px;
  text-align: center;
  max-width: 500px;
  width: 100%;
}

.error-details {
  background-color: rgba(220, 53, 69, 0.1);
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 24px;
  font-size: 14px;
  color: #dc3545;
}

.error-actions button svg {
  height: 13px;
  margin-right: 10px;
}